package entityBeans;

import java.io.Serializable;
import javax.persistence.*;
import java.util.List;


/**
 * The persistent class for the nacionalidad database table.
 * 
 */
@Entity
public class Nacionalidad implements Serializable {
	private static final long serialVersionUID = 1L;

	@Id
	private Integer id;

	private String pais;

	//bi-directional many-to-one association to Personal
	@OneToMany(mappedBy="nacionalidad")
	private List<Personal> personals;

	//bi-directional many-to-one association to Socio
	@OneToMany(mappedBy="nacionalidad")
	private List<Socio> socios;

    public Nacionalidad() {
    }

	public Integer getId() {
		return this.id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public String getPais() {
		return this.pais;
	}

	public void setPais(String pais) {
		this.pais = pais;
	}

	public List<Personal> getPersonals() {
		return this.personals;
	}

	public void setPersonals(List<Personal> personals) {
		this.personals = personals;
	}
	
	public List<Socio> getSocios() {
		return this.socios;
	}

	public void setSocios(List<Socio> socios) {
		this.socios = socios;
	}
	
}